import { Module } from '@nestjs/common';
import { ChargeOrderService } from './charge-order.service';
import { ChargeOrder } from '@app/db/entities/ChargeOrder';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ChargeOrderController } from './charge-order.controller';
import { CommonModule } from '../common/common.module';
import { MongooseModule } from '@nestjs/mongoose';
import { OrderPowerData, OrderPowerDataSchema } from '@app/mongodb/schemas/orderPowerData';
import { Merchant } from '@app/db/entities/Merchant';

@Module({
  imports : [CommonModule, TypeOrmModule.forFeature([ChargeOrder, Merchant]), MongooseModule.forFeature([{name : OrderPowerData.name, schema : OrderPowerDataSchema}])],
  providers: [ChargeOrderService],
  exports : [ChargeOrderService],
  controllers: [ChargeOrderController],
})
export class ChargeOrderModule {}
